package system

import (
	"counter-help/admin/server/global"
	"time"
)

// UUIDRenewalRecord 结构体，用于记录UUID续费历史
type UUIDRenewalRecord struct {
	global.GVA_MODEL
	UUID           string    `json:"uuid" gorm:"comment:UUID;index;size:36"`
	RenewalType    string    `json:"renewalType" gorm:"comment:续费类型(day/month);size:10"`
	RenewalValue   int       `json:"renewalValue" gorm:"comment:续费时长值"`
	OldExpireTime  time.Time `json:"oldExpireTime" gorm:"comment:原过期时间" time_format:"2006-01-02 15:04:05"`
	NewExpireTime  time.Time `json:"newExpireTime" gorm:"comment:新过期时间" time_format:"2006-01-02 15:04:05"`
	OperatorUserID uint      `json:"operatorUserId" gorm:"comment:操作人ID;default:0"`
	Remark         string    `json:"remark" gorm:"comment:备注;size:255"`
}

// TableName 设置表名
func (UUIDRenewalRecord) TableName() string {
	return "uuid_renewal_records"
}
